import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/', // 主页路由
    component: () => import(/* webpackChunkName: "Layout" */ '@/views/Layout'),
    children: [
      {
        path: '', // home路由
        component: () => import(/* webpackChunkName: "Layout" */ '@/views/Home')
      }
    ]
  },
  {
    path: '/login', // 登录路由
    component: () => import(/* webpackChunkName: "login" */ '@/views/Login')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
